<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>1-文字对齐方式</title>
    <style>
        p{
            text-align: center;
        }
        img{
            vertical-align: bottom;
        }
        .uname{
            vertical-align: bottom;
        }
    </style>
</head>
<body>
    <!-- 
        基线baseline
     -->
    <p><img src="images/1.jpg" alt="">中国china西安xian钟楼zhonglou在哪？</p>
    <hr>
    <div>
        <input class="uname" type="text" placeholder="请输入用户名"><input type="button" value="提交">
    </div>
    <hr>
    <style>
        .box{
            width: 500px;
            height: 300px;
            border: 1px solid red;
        }
    </style>
    <div class="box">
        <input type="text" style="vertical-align:top;">
    </div>
    <hr>
    <style>
        .pic{
            width: 500px;
            border: 1px solid blue;
        }
        .pic img{
            vertical-align: top;
        }
    </style>
    <div class="pic">
        <img src="images/1.jpg" alt="">
    </div>
    <hr>
    <style>
        .open{
            width: 500px;
            height: 500px;
            border: 1px solid #000;
            line-height: 500px;
        }
        .open img{
            vertical-align: middle;
        }
    </style>
    <div class="open">
        <img src="images/200.png" alt="">
    </div>
</body>
</html>